cmake_minimum_required(VERSION 3.8)
project(serial_all)


# Default to C99
if(NOT CMAKE_C_STANDARD)
  set(CMAKE_C_STANDARD 99)
endif()

# Default to C++14
if(NOT CMAKE_CXX_STANDARD)
  set(CMAKE_CXX_STANDARD 14)
endif()
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
  add_compile_options(-Wall -Wextra -Wpedantic)
endif() 

include_directories(
  include
  ${Boost_INCLUDE_DIRS}
)

aux_source_directory(src SRC_LISTS)
# find dependencies
find_package(ament_cmake REQUIRED)
find_package(rclcpp REQUIRED)
find_package(std_msgs REQUIRED)

#find_package(serial_all REQUIRED)                         # CHANGE
find_package(wheel_msg REQUIRED)

#ament_export_dependencies(rosidl_default_runtime)
add_executable(serial ${SRC_LISTS})

target_link_libraries(serial yaml-cpp)
ament_target_dependencies(serial rclcpp std_msgs wheel_msg)
# uncomment the following section in order to fill in
# further dependencies manually.
# find_package(<dependency> REQUIRED)
install(TARGETS
serial
  DESTINATION lib/${PROJECT_NAME})


ament_package()
